#!/usr/bin/env python

# (c) Copyright 2007 The Board of Trustees of the University of Illinois.

import sys
import itertools

import filecompare as fc
import textfilecompare as tfc

ref = file(sys.argv[1], "r")
size = int(ref.readline()) 


cost_err = "Computed node cost does not match the expected values\n"


comparison = fc.Sequence_([fc.Compare(tfc.float),
	fc.Sequence_(itertools.repeat(fc.Compare(tfc.floats, message=cost_err), size ))
	])

fc.default_main(comparison)
